package com.apache.flow.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "FLOW_automatic_processing")
public class FlowAutomaticProcessing implements java.io.Serializable {
	private static final long serialVersionUID = -3575305409409466034L;
	private String dbId;//主键
	private String taskId;//节点Id
	private String handleUrl;//处理路径
	private String handleStauts;//处理状态   0：未处理    1：已处理
	private String handleParam;//处理参数
	private String processInsId;//实例Id
	private String createTime;//创建时间
	private String executeInfo;//执行信息
	private String executeTime;//执行时间

	public FlowAutomaticProcessing() {
	}

	public FlowAutomaticProcessing(String dbId, String taskId, String handleUrl, String handleStauts,
			String handleParam, String processInsId, String createTime) {
		this.dbId = dbId;
		this.taskId = taskId;
		this.handleUrl = handleUrl;
		this.handleStauts = handleStauts;
		this.handleParam = handleParam;
		this.processInsId = processInsId;
		this.createTime = createTime;
	}

	public FlowAutomaticProcessing(String dbId, String taskId, String handleUrl, String handleStauts,
			String handleParam, String processInsId, String createTime, String executeInfo, String executeTime) {
		this.dbId = dbId;
		this.taskId = taskId;
		this.handleUrl = handleUrl;
		this.handleStauts = handleStauts;
		this.handleParam = handleParam;
		this.processInsId = processInsId;
		this.createTime = createTime;
		this.executeInfo = executeInfo;
		this.executeTime = executeTime;
	}

	@Id
	@Column(name = "DBID", unique = true, nullable = false, length = 100)
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid.hex")
	public String getDbId() {
		return dbId;
	}

	public void setDbId(String dbId) {
		this.dbId = dbId;
	}

	@Column(name = "HANDLE_URL", length = 50)
	public String getHandleUrl() {
		return handleUrl;
	}

	public void setHandleUrl(String handleUrl) {
		this.handleUrl = handleUrl;
	}

	@Column(name = "task_Id", length = 50)
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	@Column(name = "HANDLE_STATUS", length = 1)
	public String getHandleStauts() {
		return handleStauts;
	}

	public void setHandleStauts(String handleStauts) {
		this.handleStauts = handleStauts;
	}

	@Column(name = "HANDLE_PARAM", length = 100)
	public String getHandleParam() {
		return handleParam;
	}

	public void setHandleParam(String handleParam) {
		this.handleParam = handleParam;
	}

	@Column(name = "PROCESSINS_ID", length = 50)
	public String getProcessInsId() {
		return processInsId;
	}

	public void setProcessInsId(String processInsId) {
		this.processInsId = processInsId;
	}

	@Column(name = "CREATE_TIME", length = 32)
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "EXECUTE_INFO", length = 500)
	public String getExecuteInfo() {
		return executeInfo;
	}

	public void setExecuteInfo(String executeInfo) {
		this.executeInfo = executeInfo;
	}

	public String getExecuteTime() {
		return executeTime;
	}

	public void setExecuteTime(String executeTime) {
		this.executeTime = executeTime;
	}

}
